#include <iostream>
#include <vector>
using namespace std;
bool isSubsequence(string s, string t) 
{
	int n = t.size();
	int flag = s.size();
	int j = 0;
	for (int i = 0; i < n; i++)
	{
		if (t[i] == s[j])
		{
			j++;
		}
	}
	if (j == flag)
		return true;
	return false;
}
int main()
{
	cout << isSubsequence("abc", "abcddddd");
	return 0;
}